package com.example.jasypt.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: scout.du
 * @date: 2023/02/19 11:48
 **/
@RestController
public class HelloController {

    @Value("${name}")
    private String name;

    @GetMapping("/hello")
    public String hello(){
        return "hello world";
    }

    @GetMapping("/getName")
    public String getName(){
        return name;
    }
}
